<?php 
	class Extend
	{
		public static function CutStr()
		{
			return 'abc';
		}
		
		public static function JsAlert($str)
		{
			echo '<script type="text/javascript">alert("'.$str.'");</script>';
		}
		
		public static function  JsLocation($url,$target='_self')
		{
			if($target=='_self')
				echo '<script type="text/javascript">window.location="'.$url.'";</script>';
			else if($target=='_parent')
				echo '<script type="text/javascript">parent.window.location="'.$url.'";</script>';
			else if($target=='_top')
				echo '<script type="text/javascript">window.top.location="'.$url.'";</script>';				
		}
		
		public static function  JsHistory($his)
		{
			echo '<script type="text/javascript">history.go('.$his.');</script>';
		}		
				
	}
?>